// Copyright  2012 Petr TALLA. [petr.talla@gmail.com]
// This file is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This file is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY;  without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
// [http://www.gnu.org/copyleft/lesser.html]
//=============================================================================
package tc.map;

//=============================================================================
/** TcMview controller
*/
public class TcMviewControl {
//=============================================================================	
public static String httpbase = "http://tile.openstreetmap.org/";
public final static boolean DEBUG_DRAWING = false;

private final TcMview view;
private final TcMviewModel model;

TcMviewControl ( TcMview view, TcMviewModel model ) {
	this.view = view;
	this.model = model;
}
//=============================================================================	
/**Zooms in one layer
*/
public void zoomin() {
	model.zoomin();
	view.repaint();
}

/**Zooms in one layer
*/
public void zoomout() {
	model.zoomout();
	view.repaint();
}

/**Gets currently displayed layer
*/
public int getCurrentLayer() {
	return model.getCenterAddress().getLayer();
}
//=============================================================================
}
